package com.chenhao.springcloud.chenhaodesignservice.design.openclose;

/**
 * Description:
 *
 * @author chenhao
 * @date 2020/12/7 16:00
 */
public class JavaDiscountCourse  extends JavaCourse{

    public JavaDiscountCourse(Integer id, String name, Double price) {
        super(id, name, price);
    }
    @Override
    public Double getPrice(){
        return super.getPrice()*0.8;
    }
}
